import random
c = 0
n = int(input())
for e in range(n):
    x = random.randint (-100, 100)
    y = random.randint (-100, 100)
    if (x >= -7 and x <= 5) and (y >= -8 and y <= 5):
        c += 1    
print (c)
